package encode;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.List;

public class CodeTest {
    public static void main(String[] args) throws UnsupportedEncodingException {
//        Object o1 = new Object();
//        Object o2 = new Object();
//        System.out.println(o1 == o2);
//        String s1 = "test";
//        String s2 = "test";
//        System.out.println(s1 == s2);
//        String s = "list_test";
//        List<String> list1 = new ArrayList<String>();
//        List<String> list2 = new ArrayList<String>();
//        list1.add(s);
//        list2.add(s);
//        System.out.println(list1.get(0) == list2.get(0));
        String input = "可可小爱01";
        System.out.println(URLEncoder.encode(input,"utf-8"));
    }
}
